<script setup lang="ts">
// vue2 mixin
// vue3 天生都可写vue组件js代码抽离
import { createNum } from '@/composable/num'
const { num, add } = createNum()
</script>

<template>
  <div class="app-page">演示页面</div>
  <div>{{ num }}</div>
  <button @click="add">num++</button>
</template>

<style scoped></style>
